package com.sxhuayuan.parking.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sxhuayuan.parking.dao.BaseDao;
import com.sxhuayuan.parking.dao.OemConfigDao;
import com.sxhuayuan.parking.entity.OemConfig;
import com.sxhuayuan.parking.service.OemConfigService;

@Service("oemConfigServiceImpl")
public class OemConfigServiceImpl extends BaseServiceImpl<OemConfig, Long> implements OemConfigService {

	@Resource
	OemConfigDao dao;

	@Override
	public BaseDao<OemConfig, Long> getDAO() {
		return dao;
	}

	@Override
	public OemConfig findByAgent(Long agentId) {
		return dao.findByAgentId(agentId);
	}

	@Override
	public OemConfig findByParkingLot(Long parkingLotId) {
		return dao.findByParkingLotId(parkingLotId);
	}

	@Override
	public OemConfig findByWxMchid(String mchid) {
		return dao.findByWxMchid(mchid);
	}
}
